package com.wash.shoes.controller.pc;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.domain.R;
import com.wash.shoes.domain.vo.OrderCommentVo;
import com.wash.shoes.domain.vo.ShoeVo;
import com.wash.shoes.entity.OrderCommentPo;
import com.wash.shoes.entity.ShoePo;
import com.wash.shoes.service.OrderCommentService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ljg
 * @since 2024-12-03
 */
@Api(tags = {"PC-订单的评价"})
@RestController
@RequestMapping("/orderComment")
public class OrderCommentController {

    @Autowired
    private OrderCommentService orderCommentService;

    @ApiOperation("订单的评价列表")
    @PostMapping("/list")
    public R<Page<OrderCommentVo>> pageList(@RequestBody OrderCommentPo orderCommentPo) {
        Page<OrderCommentVo> page = orderCommentService.pageList(orderCommentPo);
        return R.ok(page);
    }

}

